<!doctype html>
<html class="no-js">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
    <title>微信支付</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <js href="__GLOBAL__/js/jquery.min.js" />
    <js href="__GLOBAL__/layer/layer.js" />
    <style type="text/css">
        .body{background: #f1f1f1;}
        .tsys{width: 9.5rem;height: 2.4rem;line-height: 2.4rem;background:#03bddd;color:#fff;font-size:0.9rem;text-align: center;border-radius:8px;margin:1rem auto;cursor: pointer;}
        .main_main{position:fixed;left:50%;width: 90%;top:0;z-index: 100;background:#fefefe;padding:1rem 0.5rem;box-sizing: border-box;margin-left: -45%;border-radius:10px;top:3rem;}
        .red_qian{width: 100%;color:#fe0000;font-size:0.9rem;text-align: center;}
        .main_main img{width: 10rem;height: 10rem;display: block;margin:1rem auto;}
        .zwd{text-align: center;color:#666;font-size:0.8rem;}
    </style>
</head>
<body >
<div class="main_main">
    <p class="red_qian">充值后的钱会入你的账户，可以提现</p>
    <img src="{$img}" alt=""  />
    <p class="red_qian">用另外一台手机打开微信扫一扫按钮直接扫码即可完成支付</p>
    <!--
    <p class="red_qian">第二步：打开微信点击扫一扫按钮，从【相册】选中刚才保存的【二维码】</p>
    <p class="red_qian">第三步：使用另一部手机为此二维码进行扫描</p>
    -->
    <!--<div class="tsys">点击调起【扫一扫】</div>-->
    <!--<p class="zwd">支付完成后 耐心等待5秒</p>-->
</div>
<!--  <header data-am-widget="header" class="am-header am-header-default">

     <h1 class="am-header-title" >
         <a href="javascript:;" class="">
             微信扫码支付
         </a>
     </h1>
 </header>
 <div class="ewm">
     <img src="{$img}" alt=""  />
     <h1>请识别图中二维码支付</h1>
     <div class="tsys">点击调起【扫一扫】</div>
 </div> -->
<div style="display:none">
    <input id='order_number' value="{$order_number}">
</div>
</body>
<script>
    $(function () {
        setInterval(function () {
            var order_number = "{$order_number}";
            $.post("__CONTROLLER__/AjaxQueryOrderStatus",{"order_number" : order_number},function(result){
                if(result.status == 1) {
                    //页面层
                    layer.msg('支付成功，即将跳转', {time: 5000, icon:6});
                    setTimeout(function () {
                        location.href = result.return_url;
                    },1500);
                }
            },'json');
        },3000)
    });
</script>
</html>